/**
 * @file      stk_websock_accept.h
 * @copyright Copyright (c) 2020, CYG-ZCW Co., Ltd. All Rights Reserved.
 * @brief     brief
 * @author    caiwang213@qq.com
 * @date      2020-09-09 21:21:31
 *
 * @note
 *  stk_websock_accept.h defines
 */
#ifndef __STK_WEBSOCK_ACCEPT_H__
#define __STK_WEBSOCK_ACCEPT_H__
#include "stk_base.h"

namespace stk
{
class STK_API WebsockAccept : public MsgField
{
public:
    WebsockAccept();
    WebsockAccept(const WebsockAccept &src);
    WebsockAccept(const char *buf, int len);
    virtual ~WebsockAccept();

public:
    WebsockAccept & operator= (const WebsockAccept& oSrc);

    virtual	void 	clear();
    virtual	bool	isvalid() const;
    virtual int32_t	to_str(string & str);
    virtual int32_t	parse(const char * szBuf, int nBufLen);

public:
    string		    m_strValue;                /**< value for WebsockAccept (size of attachments) */
};
}
#endif
